package com.itheima;

public class Person {
    String name;
    int Math;
    int Chinese;

    public void total() {
        System.out.println(name + "的总分是" + (Math + Chinese));
    }
    public void avg() {
        System.out.println(name + "的平均分是" + (Math + Chinese) / 2);
    }
}

